<?php 
/*
 module:		基本配置控制器
 create_time:	2022-08-10 18:44:12
 author:		
 contact:		
*/

namespace app\admin\model;
use think\Model;

class Historyprice extends Model {

    protected $name = 'adc_history_price';

    protected $autoWriteTimestamp = true;
    protected $updateTime = false;

    /**
     * 查询列表
     * @param int $page 页码
     * @param int $limit    页面数量
     * @param array $where 查询条件
     * @param string $order 排序
     * @return array
     * @throws \think\db\exception\DbException
     */
    public static function getList($page=1,$limit=20,$where=[],$order = 'id desc'){
        $data = self::where($where)->order($order)->paginate(10)->toArray();
        return $data;
    }
}

